//
//  NSCalendar+YDYExtension.m
//  DYSisterAPP
//
//  Created by 杨德勇 on 16/8/6.
//  Copyright © 2016年 杨德勇. All rights reserved.
//

#import "NSCalendar+YDYExtension.h"

@implementation NSCalendar (YDYExtension)
+(instancetype)ydy_calendar{
    if ([NSCalendar instancesRespondToSelector:@selector(calendarWithIdentifier:)]) {
        return [NSCalendar calendarWithIdentifier:NSCalendarIdentifierGregorian];
    }else{
        return [NSCalendar currentCalendar];
    }
}
@end
